package com.cskaoyan.mall.model.vo;


import java.util.List;

public class GetOrderVO {
    private Integer id;
    private Double amount;
//    private Integer goodsNum;
    private Integer num;
    private Integer goodsDetailId;
    private Integer stateId;
    private String state;
    private String goods;
    private List<OrderSpecVO> spec;
    private List<StateVO> states;
    private StateIdVO curState;
    private OrdersSpecIdVO curSpec;

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }


    public List<OrderSpecVO> getSpec() {
        return spec;
    }

    public void setSpec(List<OrderSpecVO> spec) {
        this.spec = spec;
    }

    public List<StateVO> getStates() {
        return states;
    }

    public void setStates(List<StateVO> states) {
        this.states = states;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

//    public Integer getGoodsNum() {
//        return goodsNum;
//    }
//
//    public void setGoodsNum(Integer goodsNum) {
//        this.goodsNum = goodsNum;
//        this.num = goodsNum;
//    }

    public Integer getGoodsDetailId() {
        return goodsDetailId;
    }

    public void setGoodsDetailId(Integer goodsDetailId) {
        this.goodsDetailId = goodsDetailId;
    }

    public Integer getStateId() {
        return stateId;
    }

    public void setStateId(Integer stateId) {
        this.stateId = stateId;
        if(stateId == 0){
            setState("未付款");
        }else if(stateId == 1){
            setState("未发货");
        }else if(stateId == 2){
            setState("已发货");
        }else if(stateId == 3){
            setState("已到货");
        }
        setCurState(new StateIdVO(stateId));
    }

    public String getGoods() {
        return goods;
    }

    public void setGoods(String goods) {
        this.goods = goods;
    }


    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public StateIdVO getCurState() {
        return curState;
    }

    public void setCurState(StateIdVO curState) {
        this.curState = curState;
    }

    public OrdersSpecIdVO getCurSpec() {
        return curSpec;
    }

    public void setCurSpec(OrdersSpecIdVO curSpec) {
        this.curSpec = curSpec;
    }
}
